package com.ubing.boot.notesforjava.response;

/**
 * @ClassName : CodeEnum
 * @Description : CodeEnum
 * @Author : Xxxxx
 * @Date: 2023-02-15 19:24
 */
public enum CodeEnum {
    /**
     * 操作失败
     */
    FAILURE(0, "操作失败"),
    /**
     * 操作成功
     */
    SUCCESS(1, "操作成功"),

    TOKEN_ERROR(3,"token错误");

    private final int code;
    private final String info;
    CodeEnum(int code, String info) {
        this.code = code;
        this.info = info;
    }
    public int getCode(){
        return code;
    }

    public String getInfo(){
        return info;
    }
}
